home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-4.0 / gdb / doc / Makefile < prev    next >
Encoding:
Makefile  |  1991-08-24  |  3.4 KB  |  104 lines

  1. ##Copyright (C) 1991 Free Software Foundation, Inc.
  2.  
  3. # This file is part of GDB.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. # main GDB source directory
  18. srcdir = ..
  19.  
  20. # Documentation (gdb.dvi) needs either GNU m4 or SysV m4; 
  21. # Berkeley/Sun don't have quite enough. 
  22. #M4=/usr/5bin/m4
  23. M4=gm4
  24.  
  25. # where to find texinfo; GDB dist should include a recent one
  26. TEXIDIR=${srcdir}/../texinfo/fsf
  27.  
  28. # where to find makeinfo, preferably one designed for texinfo-2
  29. MAKEINFO=makeinfo
  30.  
  31. # Where is the source dir for the READLINE library?  Traditionally in .. or .
  32. # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
  33. READLINE_DIR = ${srcdir}/../readline
  34.  
  35. # Main GDB manual's source files
  36. SFILES_DOCDIR = \
  37.     gdb.texinfo pretex.m4 none.m4 all.m4 gdbinv-m.m4 gdbinv-s.m4   
  38.  
  39. all: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
  40.  
  41. clean:
  42.     rm -f gdb.dvi rdl-apps.texi gdb-all* gdb.info* 
  43.     rm -f gdb-internals gdbint.?? gdbint.???
  44.     rm -f refcard.ps refcard.dvi rcfonts.tex refcard.log *~
  45.  
  46. # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
  47. refcard.dvi : refcard.tex
  48.     rm -f rcfonts.tex; cp rc-cm.tex rcfonts.tex
  49.     TEXINPUTS=.:$$TEXINPUTS tex refcard.tex; rm -f refcard.log 
  50.  
  51. # GDB QUICK REFERENCE (PostScript output, common PS fonts)
  52. refcard.ps : refcard.tex
  53.     rm -f rcfonts.tex; cp rc-ps.tex rcfonts.tex
  54.     TEXINPUTS=.:$$TEXINPUTS tex refcard.tex
  55.     dvips -t landscape refcard -o; rm -f refcard.dvi refcard.log
  56.  
  57. # Cover file for "Readline" appendices
  58. rdl-apps.texi: ${READLINE_DIR}/inc-readline.texinfo \
  59.             ${READLINE_DIR}/inc-history.texinfo
  60.     rm -f rdl-apps.texi
  61.     echo "@include ${READLINE_DIR}/inc-readline.texinfo" >rdl-apps.texi
  62.     echo "@include ${READLINE_DIR}/inc-history.texinfo" >>rdl-apps.texi
  63.  
  64. # GDB MANUAL: texinfo source, created by preprocessing w/m4
  65. # Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
  66. gdb-all.texi: ${SFILES_DOCDIR}
  67.     rm -f foobus.texinfo
  68.     ${M4} pretex.m4 none.m4 all.m4 gdb.texinfo  >foobus.texinfo
  69.     rm -f gdb-all.texi
  70.     mv foobus.texinfo gdb-all.texi
  71.  
  72. # GDB MANUAL: TeX dvi file
  73. gdb.dvi : gdb-all.texi rdl-apps.texi
  74.     TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texi
  75.     texindex gdb-all.??
  76.     TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdb-all.texi
  77.     mv gdb-all.dvi gdb.dvi
  78.     rm -f gdb-all.?? gdb-all.???
  79.  
  80. # GDB MANUAL: info file
  81. # We're using texinfo2, and older makeinfo's may not be able to
  82. # cope with all the markup.  In the meantime, we distribute the info
  83. # files 
  84. gdb.info: gdb-all.texi
  85.     ${MAKEINFO} gdb-all.texi
  86.  
  87. # GDB INTERNALS MANUAL: TeX dvi file
  88. gdbint.dvi : gdbint.texinfo
  89.     TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdbint.texinfo
  90.     texindex gdbint.??
  91.     TEXINPUTS=${TEXIDIR}:$$TEXINPUTS tex gdbint.texinfo
  92.     rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \
  93.         gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs
  94.  
  95. # GDB INTERNALS MANUAL: info file
  96. gdb-internals : gdbint.texinfo
  97.     ${MAKEINFO} gdbint.texinfo
  98.  
  99.  
  100.  
  101.  
  102.